package com.tensquare.qa.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Feign接口.
 *
 * @author 宫新程
 * @since 2019/3/17 21:14
 */
@FeignClient(value = "tensquare-base", fallback = BaseClientImpl.class)
public interface BaseClient {

  /** 根据id查询. */
  @GetMapping("/label/{labelId}")
  Result findById(@PathVariable("labelId") String labelId);
}
